package org.demo.java2d.data;
/**
 * 
 * @author  
 * @date    2010-5-12
 * @file    org.demo.java2d.data.TreeNode.java
 */
public class TreeNode {
	// 名称
	private String name;
	// 中文描述
	private String desc;
	// 关联到右边的节点
	private String to;
	// 节点层次
	private int level;
	// x 坐标
	private int x;
	// y 坐标
	private int y;
	// 字符串宽度
	private int width;
	
	public TreeNode(){
		
	}
	
	public TreeNode(String name, String desc, String to) {
		super();
		this.name = name;
		this.desc = desc;
		this.to = to;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * @return the to
	 */
	public String getTo() {
		return to;
	}

	/**
	 * @return the level
	 */
	public int getLevel() {
		return level;
	}

	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}

	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}

	/**
	 * @return the width
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param desc the desc to set
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}

	/**
	 * @param to the to to set
	 */
	public void setTo(String to) {
		this.to = to;
	}

	/**
	 * @param level the level to set
	 */
	public void setLevel(int level) {
		this.level = level;
	}

	/**
	 * @param x the x to set
	 */
	public void setX(int x) {
		this.x = x;
	}

	/**
	 * @param y the y to set
	 */
	public void setY(int y) {
		this.y = y;
	}

	/**
	 * @param width the width to set
	 */
	public void setWidth(int width) {
		this.width = width;
	}
}
